﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">

<class name="Parichay.Domain.MemberReplies, Parichay.Domain" table="member_replies" >

<id name="Id" column="Id" type="System.Int32" unsaved-value="null"><generator class="native"/></id>

<property name="Privacy" column="Privacy" access="field.pascalcase-underscore" not-null="true" type="System.Int32"  insert="true" update="true"/>
<property name="Targeturl" column="TargetUrl" access="field.pascalcase-underscore" not-null="false" type="System.String"  insert="true" update="true"/>
<property name="Createdon" column="CreatedOn" access="field.pascalcase-underscore" not-null="true" type="System.DateTime"  insert="true" update="true"/>
<property name="Modifiedon" column="ModifiedOn" access="field.pascalcase-underscore" not-null="true" type="System.DateTime"  insert="true" update="true"/>
<property name="Type" column="Type" access="field.pascalcase-underscore" not-null="true" type="System.Int32"  insert="true" update="true"/>
<property name="Source" column="Source" access="field.pascalcase-underscore" not-null="true" type="System.String"  insert="true" update="true"/>
<property name="Text" column="Text" access="field.pascalcase-underscore" not-null="true" type="System.String"  insert="true" update="true"/>
<property name="Thumbnailfilename" column="ThumbnailFilename" access="field.pascalcase-underscore" not-null="false" type="System.String"  insert="true" update="true"/>
  <many-to-one name="Sender"  access="field.pascalcase-underscore" not-null="true" outer-join="auto" insert="true" update="true">
    <column name="SenderId"/>
  </many-to-one>
  <many-to-one name="Recipient"  access="field.pascalcase-underscore" not-null="true" outer-join="auto" insert="true" update="true">
    <column name="RecipientId"/>
  </many-to-one>
  <many-to-one name="Parent" access="field.pascalcase-underscore" not-null="false" outer-join="auto"  update="true" insert="true">
    <column name="ParentId"></column>
  </many-to-one>
</class>
</hibernate-mapping>
